﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Data;

namespace EcoSystem
{
    /// <summary>
    /// 添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateNotificationDto
    {
        /// <summary>
        /// 消息通知类别
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 目标业务ID
        /// </summary>
        public Guid TargetId { get; set; }

        /// <summary>
        /// 通知标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 通知描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 跳转URL
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 任务关联用户
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 消息数据
        /// </summary>
        public string Data { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        public ExtraPropertyDictionary ExtraProperties { get; set; }
    }
}
